package gewu.suleju.dao.iml;

import gewu.suleju.model.pojo.HouserBrowsingHistory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface IHouseBrowsingHistoryDao extends JpaRepository<HouserBrowsingHistory,Integer>{

    HouserBrowsingHistory findHouserBrowsdHistoryByUserId(Integer  userid);
    @Query(value = "select * from houser_browsing_history  where user_id = ?",nativeQuery = true)
//    List<HouseInfor>  findHouseBrowHistory(Integer user_id);
    List<HouserBrowsingHistory> findHouserBrowdHistoriesByUserId(Integer userid);
}
